package com.hk.aefz.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 点赞表
 * </p>
 *
 * @author 阿尔法哲
 * @since 2020-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Praise对象", description="点赞表")
public class Praise implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "点赞id")
    @TableId(value = "gid", type = IdType.AUTO)
    private Integer gid;

    @ApiModelProperty(value = "博客id")
    private Integer eid;

    @ApiModelProperty(value = "账户id")
    private Integer aid;

    @ApiModelProperty(value = "0：未点赞 1：点赞")
    private Integer gpraise;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
